home *** CD-ROM | disk | FTP | other *** search
/ Deutsche Edition 2 / Deutsche Edition 2.iso / mac / UTILITYS / MathLibFast ƒ / mathtest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-14  |  259 b   |  22 lines  |  [TEXT/MPS ]

  1. #include <math.h>
  2. #include <time.h>
  3. #include <stdio.h>
  4.  
  5. #define ITER 1e6
  6. main()
  7. {
  8.     int     i;
  9.     double  x;
  10.     long start,end;
  11.     
  12.     start = clock();
  13.     
  14.     for(i=0; i<ITER; i++){
  15.         x = sin(0.5);
  16.     }
  17.     
  18.     end = clock();
  19.     
  20.     printf("time is %f\n",(end-start)/60.0);
  21.     return 0;
  22. }